﻿using System.Collections;
using System.Collections.Generic;
using UBlockly.Scriptable;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace UBlockly.Compotent
{
    internal interface IBlockInputField
    {
        System.Action<RectTransform> OnReadyInputCallback { get; set; }
    }

    [AddComponentMenu("BlocklyUI/UInput Field")]
    internal class UInputField : InputField
    {
        public override void OnSubmit(BaseEventData eventData)
        {
            base.OnSubmit(eventData);
            //float origLen = UTrans.GetSize().x;
            //float len = Common.GetFontLen(this.m_TextComponent.font, this.m_TextComponent.fontSize, text);
            //len = UTrans.MinSize.x > len ? UTrans.MinSize.x : len;
        }
    }
}

